package com.spark.lola.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spark.lola.entity.warehouse.StoreProduct;
import com.spark.lola.entity.warehouse.StoreSupplier;
import com.spark.lola.support.mybatis.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dengyejun
 * @since 2020-06-10
 */
public interface StoreSupplierMapper extends BaseMapper<StoreSupplier> {
    IPage<StoreSupplier> page(Page page, @Param(Constants.WRAPPER) Wrapper wrapper);

    @Override
    StoreSupplier selectById(Serializable id);

    StoreSupplier selectByNo(@Param("storeId")Long storeId,@Param("no") String no);

}
